package com.reflex;

import com.reflex.annotations.AutoRunClass;

public class ReflexDemo09 {
    public static void main(String[] args) throws Exception {
        Class<?> aClass = Class.forName("com.reflex.Person");
        boolean make = aClass.isAnnotationPresent(AutoRunClass.class);
        if (make) {
            System.out.println("有注解");
        }else {
            System.out.println("没有注解");
        }
    }
}
